<div class="box featured">

	<div class="box-heading">Sản phẩm mới</div>
	
	<div class="box-content">
		
		<div class="box-product">
		
			<ul class="row">
				
				<?php $index = 0; foreach($productList as $item): $index++; ?>
					
					<li class="last_line span3">
					
						<script type="text/javascript">
							$(document).ready(function(){
								$("a.colorbox<?php echo $index ?>").colorbox({
								rel: 'colorbox',
								inline:true,
								html: true,
								width:'58%',
								maxWidth:'780px',
								height:'70%',
								opacity:0.6,
								open:false,
								returnFocus:false,
								fixed: false,
								title: false,
								href:'.quick-view<?php echo $index ?>',
								current:'Sản phẩm thứ {current} trong số {total}'
								});
								});
						</script> 
					
						<div class="image2">
						
							<a href="<?php echo $this->webroot; ?>productDetail?productId=<?php echo $item['Product']['id']; ?>"><img id="img_42" src="<?php echo $item['Product']['sub_img1']; ?>" alt="<?php echo $item['Product']['product_name']; ?>"></a>		
										
							<a href="#" rel="colorbox" class="colorbox<?php echo $index ?> quick-view-button cboxElement">
								<i class=" icon-search "></i>
							</a>
							
						</div>
					
						<div style="display:none;">
							<div class="quick-view<?php echo $index ?> preview">
								<div class="wrapper marg row-fluid">
									
									<div class="left span4">
										<div class="image3">
											<a href="<?php echo $this->webroot; ?>productDetail?productId=<?php echo $item['Product']['id']; ?>"><img src="<?php echo $item['Product']['sub_img1']; ?>" alt="<?php echo $item['Product']['product_name']; ?>"></a>
										</div>
									</div>
									
									<div class="right span8">
									
										<h2><?php echo $item['Product']['product_name']; ?></h2>
										
										<div class="inf">
										
											<span class="manufacture">Xuất xứ: <a href="#"><?php echo $item['Product']['made_in']; ?></a></span>

											<span class="prod-stock-2">Tình trạng:</span>
											
											<?php if($item['Product']['status'] == 1) { ?>
												<span class="prod-stock">Còn hàng</span>
											<?php } else { ?>
												<span class="prod-stock">Hết hàng</span>
											<?php } ?>
											
											<div class="price">
												<span class="text-price">Giá: </span>
												$<?php echo $item['Product']['price']; ?>								  									  
											</div>
											
										</div>
										
										<div class="cart-button">
											
											<div class="prev_button">
												<a href="<?php echo $this->webroot; ?>productDetail?productId=<?php echo $item['Product']['id']; ?>" class="button details">
													<span>Chi tiết</span>
												</a>
											</div>
											
											<!--
											<div class="wishlist">
												<a class="tooltip-1" title="" onClick="" data-original-title="Facebook">
													<i class="icon-star"></i>
													<span>Facebook</span>
												</a>
											</div>
											
											<div class="compare">
												<a class="tooltip-1" title="" onClick="" data-original-title="Twitter">
													<i class="icon-bar-chart"></i>
													<span>Twitter</span>
												</a>
											</div>--!>
											
											<span class="clear"></span>
										</div>
										
										<div class="clear"></div>
									</div>
								</div>
								
								<div class="description">
									<p><?php echo $item['Product']['detail']; ?></p>
								</div>
							</div>
						</div>
					
					<div class="inner">
						
						<div class="f-left">

							<div class="name maxheight-feat" style="height: 20px;">
								<a href="<?php echo $this->webroot; ?>productDetail?productId=<?php echo $item['Product']['id']; ?>"><?php echo $item['Product']['product_name']; ?></a>
							</div>
							
							<div class="description"><?php echo $item['Product']['description']; ?></div>
						</div>
						
						<div class="price">
							$<?php echo $item['Product']['price']; ?>													
						</div>
						
						<div class="cart-button">
							<div class="cart">
								<a href="<?php echo $this->webroot; ?>productDetail?productId=<?php echo $item['Product']['id']; ?>" title="Chi tiết" data-id="42;" class="button addToCart">
									<span>Chi tiết</span>
								</a>
							</div>
							<span class="clear"></span>
						</div>
						
						<div class="clear"></div>
					</div>
					
					<div class="clear"></div>
				</li>
				
				<?php endforeach; ?>															
						
			</ul>
		</div>
		<div class="clear"></div>
	</div>
</div>